import 'package:family_expense/features/system_setting/widgets/primary_color_setting_view.dart';
import 'package:flutter/material.dart';
import 'package:my_flutter_core/my_flutter_core.dart';

class ThemeSettingView extends StatefulWidget {
  const ThemeSettingView({super.key});

  @override
  State<ThemeSettingView> createState() => _ThemeSettingViewState();
}

class _ThemeSettingViewState extends State<ThemeSettingView> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('主题'),
      ),
      body: _buildBody(),
    );
  }

  /// Builds main body.
  Widget _buildBody() {
    return ListView(
      children: [
        ListTile(
          title: const Text('主色调'),
          trailing: const ListTileNavigateNextIcon(),
          onTap: () =>
              NavigatorHelper.push(context, const PrimaryColorSettingView()),
        )
      ],
    );
  }
}
